module material.texture;

import canvas.abstractcanvas;
import utils.color;
import utils.vector2;
import render.render;

public class Texture {
    private RGBColor mColor;

    this() {
        mColor = RGBColor(1.0f, 0.0f, 0.0f);
    }

    this(RGBColor color) {
        mColor = color;
    }

    public void color(RGBColor col) {
        mColor = col;
    }

    public RGBColor getColor(inout RenderContext context) {
        return getColor(context,Vector2i(0,0));
    }

    //offset is quite hacky, but prevents some copy-n-pase with bump-mapping
    //offset is an ugly, disgusting, filthy, unecessary, bloated, silly, nasty,
    //   parrot-dropping like sh*t f*ck hate-you-all hack
    public RGBColor getColor(inout RenderContext context, Vector2i offset) {
        return mColor;
    }
}

